Optimal. Leaf size=133 \[ \frac {2 (A b-a B) x^{5/2}}{3 a b (a+b x)^{3/2}}+\frac {2 (2 A b-5 a B) x^{3/2}}{3 a b^2 \sqrt {a+b x}}-\frac {(2 A b-5 a B) \sqrt {x} \sqrt {a+b x}}{a b^3}+\frac {(2 A b-5 a B) \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a+b x}}\right )}{b^{7/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 133, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {79, 49, 52, 65,
223, 212} \begin {gather*} \frac {(2 A b-5 a B) \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a+b x}}\right )}{b^{7/2}}-\frac {\sqrt {x} \sqrt {a+b x} (2 A b-5 a B)}{a b^3}+\frac {2 x^{3/2} (2 A b-5 a B)}{3 a b^2 \sqrt {a+b x}}+\frac {2 x^{5/2} (A b-a B)}{3 a b (a+b x)^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 49
Rule 52
Rule 65
Rule 79
Rule 212
Rule 223
Rubi steps
\begin {align*} \int \frac {x^{3/2} (A+B x)}{(a+b x)^{5/2}} \, dx &=\frac {2 (A b-a B) x^{5/2}}{3 a b (a+b x)^{3/2}}-\frac {\left (2 \left (A b-\frac {5 a B}{2}\right )\right ) \int \frac {x^{3/2}}{(a+b x)^{3/2}} \, dx}{3 a b}\\ &=\frac {2 (A b-a B) x^{5/2}}{3 a b (a+b x)^{3/2}}+\frac {2 (2 A b-5 a B) x^{3/2}}{3 a b^2 \sqrt {a+b x}}-\frac {(2 A b-5 a B) \int \frac {\sqrt {x}}{\sqrt {a+b x}} \, dx}{a b^2}\\ &=\frac {2 (A b-a B) x^{5/2}}{3 a b (a+b x)^{3/2}}+\frac {2 (2 A b-5 a B) x^{3/2}}{3 a b^2 \sqrt {a+b x}}-\frac {(2 A b-5 a B) \sqrt {x} \sqrt {a+b x}}{a b^3}+\frac {(2 A b-5 a B) \int \frac {1}{\sqrt {x} \sqrt {a+b x}} \, dx}{2 b^3}\\ &=\frac {2 (A b-a B) x^{5/2}}{3 a b (a+b x)^{3/2}}+\frac {2 (2 A b-5 a B) x^{3/2}}{3 a b^2 \sqrt {a+b x}}-\frac {(2 A b-5 a B) \sqrt {x} \sqrt {a+b x}}{a b^3}+\frac {(2 A b-5 a B) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,\sqrt {x}\right )}{b^3}\\ &=\frac {2 (A b-a B) x^{5/2}}{3 a b (a+b x)^{3/2}}+\frac {2 (2 A b-5 a B) x^{3/2}}{3 a b^2 \sqrt {a+b x}}-\frac {(2 A b-5 a B) \sqrt {x} \sqrt {a+b x}}{a b^3}+\frac {(2 A b-5 a B) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt {a+b x}}\right )}{b^3}\\ &=\frac {2 (A b-a B) x^{5/2}}{3 a b (a+b x)^{3/2}}+\frac {2 (2 A b-5 a B) x^{3/2}}{3 a b^2 \sqrt {a+b x}}-\frac {(2 A b-5 a B) \sqrt {x} \sqrt {a+b x}}{a b^3}+\frac {(2 A b-5 a B) \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a+b x}}\right )}{b^{7/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.20, size = 94, normalized size = 0.71 \begin {gather*} \frac {\sqrt {x} \left (-6 a A b+15 a^2 B-8 A b^2 x+20 a b B x+3 b^2 B x^2\right )}{3 b^3 (a+b x)^{3/2}}+\frac {(-2 A b+5 a B) \log \left (-\sqrt {b} \sqrt {x}+\sqrt {a+b x}\right )}{b^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(314\) vs.
\(2(109)=218\).
time = 0.09, size = 315, normalized size = 2.37
method | result | size |
risch | \(\frac {B \sqrt {b x +a}\, \sqrt {x}}{b^{3}}+\frac {\left (\frac {\ln \left (\frac {\frac {a}{2}+b x}{\sqrt {b}}+\sqrt {b \,x^{2}+a x}\right ) A}{b^{\frac {5}{2}}}-\frac {5 \ln \left (\frac {\frac {a}{2}+b x}{\sqrt {b}}+\sqrt {b \,x^{2}+a x}\right ) B a}{2 b^{\frac {7}{2}}}+\frac {2 a \sqrt {b \left (x +\frac {a}{b}\right )^{2}-a \left (x +\frac {a}{b}\right )}\, A}{3 b^{4} \left (x +\frac {a}{b}\right )^{2}}-\frac {2 a^{2} \sqrt {b \left (x +\frac {a}{b}\right )^{2}-a \left (x +\frac {a}{b}\right )}\, B}{3 b^{5} \left (x +\frac {a}{b}\right )^{2}}-\frac {8 \sqrt {b \left (x +\frac {a}{b}\right )^{2}-a \left (x +\frac {a}{b}\right )}\, A}{3 b^{3} \left (x +\frac {a}{b}\right )}+\frac {14 a \sqrt {b \left (x +\frac {a}{b}\right )^{2}-a \left (x +\frac {a}{b}\right )}\, B}{3 b^{4} \left (x +\frac {a}{b}\right )}\right ) \sqrt {\left (b x +a \right ) x}}{\sqrt {b x +a}\, \sqrt {x}}\) | \(259\) |
default | \(\frac {\left (6 A \ln \left (\frac {2 \sqrt {\left (b x +a \right ) x}\, \sqrt {b}+2 b x +a}{2 \sqrt {b}}\right ) b^{3} x^{2}-15 B \ln \left (\frac {2 \sqrt {\left (b x +a \right ) x}\, \sqrt {b}+2 b x +a}{2 \sqrt {b}}\right ) a \,b^{2} x^{2}+6 B \,b^{\frac {5}{2}} x^{2} \sqrt {\left (b x +a \right ) x}+12 A \ln \left (\frac {2 \sqrt {\left (b x +a \right ) x}\, \sqrt {b}+2 b x +a}{2 \sqrt {b}}\right ) a \,b^{2} x -16 A \,b^{\frac {5}{2}} \sqrt {\left (b x +a \right ) x}\, x -30 B \ln \left (\frac {2 \sqrt {\left (b x +a \right ) x}\, \sqrt {b}+2 b x +a}{2 \sqrt {b}}\right ) a^{2} b x +40 B \,b^{\frac {3}{2}} \sqrt {\left (b x +a \right ) x}\, a x +6 A \ln \left (\frac {2 \sqrt {\left (b x +a \right ) x}\, \sqrt {b}+2 b x +a}{2 \sqrt {b}}\right ) a^{2} b -12 A \,b^{\frac {3}{2}} \sqrt {\left (b x +a \right ) x}\, a -15 B \ln \left (\frac {2 \sqrt {\left (b x +a \right ) x}\, \sqrt {b}+2 b x +a}{2 \sqrt {b}}\right ) a^{3}+30 B \sqrt {b}\, \sqrt {\left (b x +a \right ) x}\, a^{2}\right ) \sqrt {x}}{6 \sqrt {\left (b x +a \right ) x}\, b^{\frac {7}{2}} \left (b x +a \right )^{\frac {3}{2}}}\) | \(315\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 334 vs.
\(2 (109) = 218\).
time = 0.29, size = 334, normalized size = 2.51 \begin {gather*} \frac {{\left (b x^{2} + a x\right )}^{\frac {3}{2}} B a}{3 \, {\left (b^{5} x^{3} + 3 \, a b^{4} x^{2} + 3 \, a^{2} b^{3} x + a^{3} b^{2}\right )}} - \frac {\sqrt {b x^{2} + a x} B a^{2}}{3 \, {\left (b^{5} x^{2} + 2 \, a b^{4} x + a^{2} b^{3}\right )}} - \frac {{\left (b x^{2} + a x\right )}^{\frac {3}{2}} A}{3 \, {\left (b^{4} x^{3} + 3 \, a b^{3} x^{2} + 3 \, a^{2} b^{2} x + a^{3} b\right )}} + \frac {{\left (b x^{2} + a x\right )}^{\frac {3}{2}} B}{b^{4} x^{2} + 2 \, a b^{3} x + a^{2} b^{2}} + \frac {\sqrt {b x^{2} + a x} A a}{3 \, {\left (b^{4} x^{2} + 2 \, a b^{3} x + a^{2} b^{2}\right )}} + \frac {16 \, \sqrt {b x^{2} + a x} B a}{3 \, {\left (b^{4} x + a b^{3}\right )}} - \frac {7 \, \sqrt {b x^{2} + a x} A}{3 \, {\left (b^{3} x + a b^{2}\right )}} - \frac {5 \, B a \log \left (2 \, x + \frac {a}{b} + \frac {2 \, \sqrt {b x^{2} + a x}}{\sqrt {b}}\right )}{2 \, b^{\frac {7}{2}}} + \frac {A \log \left (2 \, x + \frac {a}{b} + \frac {2 \, \sqrt {b x^{2} + a x}}{\sqrt {b}}\right )}{b^{\frac {5}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.03, size = 314, normalized size = 2.36 \begin {gather*} \left [-\frac {3 \, {\left (5 \, B a^{3} - 2 \, A a^{2} b + {\left (5 \, B a b^{2} - 2 \, A b^{3}\right )} x^{2} + 2 \, {\left (5 \, B a^{2} b - 2 \, A a b^{2}\right )} x\right )} \sqrt {b} \log \left (2 \, b x + 2 \, \sqrt {b x + a} \sqrt {b} \sqrt {x} + a\right ) - 2 \, {\left (3 \, B b^{3} x^{2} + 15 \, B a^{2} b - 6 \, A a b^{2} + 4 \, {\left (5 \, B a b^{2} - 2 \, A b^{3}\right )} x\right )} \sqrt {b x + a} \sqrt {x}}{6 \, {\left (b^{6} x^{2} + 2 \, a b^{5} x + a^{2} b^{4}\right )}}, \frac {3 \, {\left (5 \, B a^{3} - 2 \, A a^{2} b + {\left (5 \, B a b^{2} - 2 \, A b^{3}\right )} x^{2} + 2 \, {\left (5 \, B a^{2} b - 2 \, A a b^{2}\right )} x\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {b x + a} \sqrt {-b}}{b \sqrt {x}}\right ) + {\left (3 \, B b^{3} x^{2} + 15 \, B a^{2} b - 6 \, A a b^{2} + 4 \, {\left (5 \, B a b^{2} - 2 \, A b^{3}\right )} x\right )} \sqrt {b x + a} \sqrt {x}}{3 \, {\left (b^{6} x^{2} + 2 \, a b^{5} x + a^{2} b^{4}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 729 vs.
\(2 (126) = 252\).
time = 103.55, size = 729, normalized size = 5.48 \begin {gather*} A \left (\frac {6 a^{\frac {39}{2}} b^{11} x^{\frac {27}{2}} \sqrt {1 + \frac {b x}{a}} \operatorname {asinh}{\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}} \right )}}{3 a^{\frac {39}{2}} b^{\frac {27}{2}} x^{\frac {27}{2}} \sqrt {1 + \frac {b x}{a}} + 3 a^{\frac {37}{2}} b^{\frac {29}{2}} x^{\frac {29}{2}} \sqrt {1 + \frac {b x}{a}}} + \frac {6 a^{\frac {37}{2}} b^{12} x^{\frac {29}{2}} \sqrt {1 + \frac {b x}{a}} \operatorname {asinh}{\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}} \right )}}{3 a^{\frac {39}{2}} b^{\frac {27}{2}} x^{\frac {27}{2}} \sqrt {1 + \frac {b x}{a}} + 3 a^{\frac {37}{2}} b^{\frac {29}{2}} x^{\frac {29}{2}} \sqrt {1 + \frac {b x}{a}}} - \frac {6 a^{19} b^{\frac {23}{2}} x^{14}}{3 a^{\frac {39}{2}} b^{\frac {27}{2}} x^{\frac {27}{2}} \sqrt {1 + \frac {b x}{a}} + 3 a^{\frac {37}{2}} b^{\frac {29}{2}} x^{\frac {29}{2}} \sqrt {1 + \frac {b x}{a}}} - \frac {8 a^{18} b^{\frac {25}{2}} x^{15}}{3 a^{\frac {39}{2}} b^{\frac {27}{2}} x^{\frac {27}{2}} \sqrt {1 + \frac {b x}{a}} + 3 a^{\frac {37}{2}} b^{\frac {29}{2}} x^{\frac {29}{2}} \sqrt {1 + \frac {b x}{a}}}\right ) + B \left (- \frac {15 a^{\frac {81}{2}} b^{22} x^{\frac {51}{2}} \sqrt {1 + \frac {b x}{a}} \operatorname {asinh}{\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}} \right )}}{3 a^{\frac {79}{2}} b^{\frac {51}{2}} x^{\frac {51}{2}} \sqrt {1 + \frac {b x}{a}} + 3 a^{\frac {77}{2}} b^{\frac {53}{2}} x^{\frac {53}{2}} \sqrt {1 + \frac {b x}{a}}} - \frac {15 a^{\frac {79}{2}} b^{23} x^{\frac {53}{2}} \sqrt {1 + \frac {b x}{a}} \operatorname {asinh}{\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}} \right )}}{3 a^{\frac {79}{2}} b^{\frac {51}{2}} x^{\frac {51}{2}} \sqrt {1 + \frac {b x}{a}} + 3 a^{\frac {77}{2}} b^{\frac {53}{2}} x^{\frac {53}{2}} \sqrt {1 + \frac {b x}{a}}} + \frac {15 a^{40} b^{\frac {45}{2}} x^{26}}{3 a^{\frac {79}{2}} b^{\frac {51}{2}} x^{\frac {51}{2}} \sqrt {1 + \frac {b x}{a}} + 3 a^{\frac {77}{2}} b^{\frac {53}{2}} x^{\frac {53}{2}} \sqrt {1 + \frac {b x}{a}}} + \frac {20 a^{39} b^{\frac {47}{2}} x^{27}}{3 a^{\frac {79}{2}} b^{\frac {51}{2}} x^{\frac {51}{2}} \sqrt {1 + \frac {b x}{a}} + 3 a^{\frac {77}{2}} b^{\frac {53}{2}} x^{\frac {53}{2}} \sqrt {1 + \frac {b x}{a}}} + \frac {3 a^{38} b^{\frac {49}{2}} x^{28}}{3 a^{\frac {79}{2}} b^{\frac {51}{2}} x^{\frac {51}{2}} \sqrt {1 + \frac {b x}{a}} + 3 a^{\frac {77}{2}} b^{\frac {53}{2}} x^{\frac {53}{2}} \sqrt {1 + \frac {b x}{a}}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 309 vs.
\(2 (109) = 218\).
time = 29.03, size = 309, normalized size = 2.32 \begin {gather*} \frac {\sqrt {{\left (b x + a\right )} b - a b} \sqrt {b x + a} B {\left | b \right |}}{b^{5}} + \frac {{\left (5 \, B a \sqrt {b} {\left | b \right |} - 2 \, A b^{\frac {3}{2}} {\left | b \right |}\right )} \log \left ({\left (\sqrt {b x + a} \sqrt {b} - \sqrt {{\left (b x + a\right )} b - a b}\right )}^{2}\right )}{2 \, b^{5}} + \frac {4 \, {\left (9 \, B a^{2} {\left (\sqrt {b x + a} \sqrt {b} - \sqrt {{\left (b x + a\right )} b - a b}\right )}^{4} \sqrt {b} {\left | b \right |} + 12 \, B a^{3} {\left (\sqrt {b x + a} \sqrt {b} - \sqrt {{\left (b x + a\right )} b - a b}\right )}^{2} b^{\frac {3}{2}} {\left | b \right |} - 6 \, A a {\left (\sqrt {b x + a} \sqrt {b} - \sqrt {{\left (b x + a\right )} b - a b}\right )}^{4} b^{\frac {3}{2}} {\left | b \right |} + 7 \, B a^{4} b^{\frac {5}{2}} {\left | b \right |} - 6 \, A a^{2} {\left (\sqrt {b x + a} \sqrt {b} - \sqrt {{\left (b x + a\right )} b - a b}\right )}^{2} b^{\frac {5}{2}} {\left | b \right |} - 4 \, A a^{3} b^{\frac {7}{2}} {\left | b \right |}\right )}}{3 \, {\left ({\left (\sqrt {b x + a} \sqrt {b} - \sqrt {{\left (b x + a\right )} b - a b}\right )}^{2} + a b\right )}^{3} b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^{3/2}\,\left (A+B\,x\right )}{{\left (a+b\,x\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________